Skip to content

Conversation

@kk428
Copy link

@kk428 kk428 commented Jan 20, 2026

This PR replaces #214. It's based on a more up-to-date version of CMSSW (CMSSW_16_0_0_pre4 rather than _pre2).

TrackingNtuple.cc has been modified so that when the trackingNtuple.root file is produced with cmsDriver.py, it includes branches corresponding to GenJets. These branches are:

  • genjet_pt
  • genjet_eta
  • genjet_phi
  • genjet_invisible_energy
  • genjet_auxiliary_energy
  • sim_genjet_idx

The last one is an index that allows each sim track to be matched with the jet it is closest to (minimizes ΔR). This replaces the post-processing described in #187, which added branches corresponding to ΔR and the jets after trackingNtuple.root was produced. The branches sim_genjet_deltaR, sim_genjet_deltaEta, and sim_genjet_deltaPhi are now also included in trackingNtuple.root.

This allows the efficiency, fake rate, and duplicate rate to plotted against ΔR. I also included a limit such that only tracks corresponding to GenJets with pT > 1000 GeV are considered.

image

None of these changes should impact the rest of LST. The code looking at the jet branches can be enabled/disabled using the -J flag.

Here are some example plots for 100 events from the file /RelValQCD_Pt_1800_2400_14/CMSSW_16_0_0_pre1-150X_mcRun4_realistic_v1_STD_RegeneratedGS_Run4D110_noPU-v1/GEN-SIM-DIGI-RAW, including only tracks with GenJet pT > 1000 GeV:

image image image image

Comment on lines +1051 to +1053
std::vector<float> genJetPt,
std::vector<float> genJetEta,
std::vector<float> genJetPhi) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::vector<float> genJetPt,
std::vector<float> genJetEta,
std::vector<float> genJetPhi) {
std::vector<float> const& genJetPt,
std::vector<float> const& genJetEta,
std::vector<float> const& genJetPhi) {

@@ -1054,6 +1046,30 @@ void bookFakeRateSet(RecoTrackSetDefinition& FRset) {
// ---------------------------------------------------------=============================================-------------------------------------------------------------------
// ---------------------------------------------------------=============================================-------------------------------------------------------------------

float finddRTemp(float eta,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Temp" is not descriptive

Suggested change
float finddRTemp(float eta,
float dRClosestJet(float eta,

@slava77
Copy link

slava77 commented Jan 22, 2026

/run all

@github-actions
Copy link

There was a problem while building and running in standalone mode. The logs can be found here.

@slava77
Copy link

slava77 commented Jan 23, 2026

There was a problem while building and running in standalone mode. The logs can be found here.

the error is due to missing #225
need to restart the tests after the bot resyncs the master.

@github-actions
Copy link

There was a problem while building and running with CMSSW. The logs can be found here.

@slava77
Copy link

slava77 commented Jan 23, 2026

There was a problem while building and running with CMSSW. The logs can be found here.

phase2_realistic_T33 is no more; it looks like we can just change to phase2_realistic_T35
@ariostas please check the CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants